assert_that(p.cargo("test").arg("foo"),
execs().with_status(0)
- .with_stdout("\
+ .with_stderr("\
[RUNNING] target[..]foo-[..]
-
+[DOCTEST] foo")
+ .with_stdout("
running 1 test
test foo ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
-[DOCTEST] foo
running 0 tests
p.root().move_into_the_past().unwrap();
assert_that(p.cargo("test"),
execs().with_status(0)
- .with_stdout("\
+ .with_stderr("\
[RUNNING] target[..]foo-[..]
-
+[RUNNING] target[..]test-[..]")
+ .with_stdout("
running 1 test
test foo ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
-[RUNNING] target[..]test-[..]
running 1 test
test foo ... ok
assert_that(p.cargo("test"),
execs().with_status(0)
- .with_stdout("\
+ .with_stderr("\
[RUNNING] target[..]foo-[..]
-
+[DOCTEST] foo")
+ .with_stdout("
running 1 test
test foo ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
-[DOCTEST] foo
running 0 tests
assert_that(p.cargo("run"),
execs().with_status(0)
- .with_stdout("\
+ .with_stderr("\
[COMPILING] foo v0.0.1 ([..])
-[RUNNING] [..]
+[RUNNING] [..]")
+ .with_stdout("\
bin
"));
assert_that(&p.bin("foo"), existing_file());
"#);
assert_that(p.cargo_process("test").arg("--features").arg("bar"),
- execs().with_status(0).with_stdout("\
+ execs().with_status(0)
+ .with_stderr("\
[COMPILING] foo [..]
[RUNNING] target[..]foo[..]
-
+[DOCTEST] foo")
+ .with_stdout("
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
-[DOCTEST] foo
running 1 test
test foo_0 ... ok
.file("tests/foo.rs", "");
assert_that(p.cargo_process("test").arg("--test=foo"),
- execs().with_stdout("\
+ execs().with_stderr("\
[COMPILING] foo v0.0.1 ([..])
-[RUNNING] target[..]debug[..]foo[..]
-
+[RUNNING] target[..]debug[..]foo[..]")
+ .with_stdout("
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
"#);
assert_that(p.cargo_process("test"),
- execs().with_stdout("\
+ execs().with_stderr("\
[COMPILING] foo v0.0.1 ([..])
-[DOCTEST] foo
-
+[DOCTEST] foo")
+ .with_stdout("
running 1 test
test foo_0 ... ok
extern crate foo;
"#);
assert_that(p.cargo_process("test"),
- execs().with_stdout("\
+ execs().with_stderr("\
[COMPILING] foo v0.0.1 ([..])
[COMPILING] bar v0.0.1 ([..])
[RUNNING] target[..]foo[..]
-
+[DOCTEST] foo")
+ .with_stdout("
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
-[DOCTEST] foo
running 1 test
test _0 ... ok